<?php


namespace app\common\validate;


use think\Validate;

class SystemValidate extends Validate
{
    protected $rule = [
        'webname' => 'require|unique:system',
        'copyright' => 'require',
    ];

    // 修改场景验证
    public function sceneSet()
    {
        return $this->only(['webname', 'copyright']);
    }
}